<!--{if !$_G['gp_pjax']}-->
<!DOCTYPE html>
<html lang="en">
	<head>
    	<noscript><meta http-equiv="refresh" content="0; url=/troubleshooter/noscript.html" /></noscript>
		<meta charset="utf-8" />
		<meta name="renderer" content="webkit">
		<title>Heivr OA - {$_G['admincp']['actname']} - {$_G['admincp']['optname']}</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<!-- basic styles -->
		<link href="/static/ace/assets/css/bootstrap.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="/static/ace/assets/css/font-awesome.min.css" />
		<!--[if IE 7]>
		  <link rel="stylesheet" href="/static/ace/assets/css/font-awesome-ie7.min.css" />
		<![endif]-->

		<!-- page specific plugin styles -->

		<!-- fonts -->

		<link rel="stylesheet" href="/static/ace/assets/css/google.css" />

		<!-- ace styles -->

		<link rel="stylesheet" href="/static/ace/assets/css/ace.min.css" />
		<link rel="stylesheet" href="/static/ace/assets/css/ace-rtl.min.css" />
		<link rel="stylesheet" href="/static/ace/assets/css/ace-skins.min.css" />

		<!--[if lte IE 8]>
		  <link rel="stylesheet" href="/static/ace/assets/css/ace-ie.min.css" />
		<![endif]-->

		<!-- inline styles related to this page -->

		<!-- ace settings handler -->

		<script src="/static/ace/assets/js/ace-extra.min.js"></script>

		<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->

		<!--[if lt IE 9]>
		<meta http-equiv="refresh" content="0; url=/troubleshooter/noie.html" />
		<script src="/static/ace/assets/js/html5shiv.js"></script>
		<script src="/static/ace/assets/js/respond.min.js"></script>
		<![endif]-->
        <style>
        	.pages{ text-align:center;}
        </style>
	</head>

	<body>
		<div class="navbar navbar-default" id="navbar">
			<script type="text/javascript">
				try{ace.settings.skin()}catch(e){}

				try{ace.settings.check('navbar' , 'fixed')}catch(e){}
			</script>

			<div class="navbar-container" id="navbar-container">
				<div class="navbar-header pull-left">
					<a href="index.php" class="navbar-brand">
						<small style="font-family:微软雅黑">
							<i class="icon-apple"></i> 黑 晶 OA
						</small>
					</a><!-- /.brand -->
					<a href="http://oa.heivr.com/new" class="navbar-brand" style="font-size:14px;"><u>资讯中心</u></a>
					<a href="http://oa.heivr.com/download" class="navbar-brand" style="font-size:14px;"><u>资料库</u></a>

				</div><!-- /.navbar-header -->
				<div class="navbar-header pull-right" role="navigation">
					<ul class="nav ace-nav">
						<li class="grey hide">
							<a data-toggle="dropdown" class="dropdown-toggle" href="javascript:void(0);">
								<i class="icon-tasks"></i>
								<span class="badge badge-grey">${intval($task_count)}</span>
							</a>

							<ul class="pull-right dropdown-navbar dropdown-menu dropdown-caret dropdown-close">
								<li class="dropdown-header">
									<i class="icon-ok"></i>
									还有${intval($task_count)}个任务未完成
								</li>
<!--{loop $self_tasks $k $v}-->
								<li>
									<a href="#">
										<div class="clearfix">
											<span class="pull-left">[{$self_teams[$v['teamid']]['name']}]{$v['name']}</span>
											<span class="pull-right">65%</span>
										</div>

										<div class="progress progress-mini ">
											<div style="width:65%" class="progress-bar "></div>
										</div>
									</a>
								</li>
<!--{/loop}-->
								<li>
									<a href="javascript:void(0);">
										查看我的任务列表
										<i class="icon-arrow-right"></i>
									</a>
								</li>
							</ul>
						</li>

						<li class="purple hide">
							<a data-toggle="dropdown" class="dropdown-toggle" href="#">
								<i class="icon-bell-alt icon-animated-bell"></i>
								<span class="badge badge-important">8</span>
							</a>

							<ul class="pull-right dropdown-navbar navbar-pink dropdown-menu dropdown-caret dropdown-close">
								<li class="dropdown-header">
									<i class="icon-warning-sign"></i>
									8条通知
								</li>

								<li>
									<a href="#">
										<div class="clearfix">
											<span class="pull-left">
												<i class="btn btn-xs no-hover btn-pink icon-comment"></i>
												新闻评论
											</span>
											<span class="pull-right badge badge-info">+12</span>
										</div>
									</a>
								</li>

								<li>
									<a href="#">
										<i class="btn btn-xs btn-primary icon-user"></i>
										切换为编辑登录..
									</a>
								</li>

								<li>
									<a href="#">
										<div class="clearfix">
											<span class="pull-left">
												<i class="btn btn-xs no-hover btn-success icon-shopping-cart"></i>
												新订单
											</span>
											<span class="pull-right badge badge-success">+8</span>
										</div>
									</a>
								</li>

								<li>
									<a href="#">
										<div class="clearfix">
											<span class="pull-left">
												<i class="btn btn-xs no-hover btn-info icon-twitter"></i>
												粉丝
											</span>
											<span class="pull-right badge badge-info">+11</span>
										</div>
									</a>
								</li>

								<li>
									<a href="#">
										查看所有通知
										<i class="icon-arrow-right"></i>
									</a>
								</li>
							</ul>
						</li>
						<li class="green hide">
							<a data-toggle="dropdown" class="dropdown-toggle" href="#">
								<i class="icon-envelope icon-animated-vertical"></i>
								<span class="badge badge-success">${intval($unread_count)}</span>
							</a>

							<ul class="pull-right dropdown-navbar dropdown-menu dropdown-caret dropdown-close">
								<li class="dropdown-header">
									<i class="icon-envelope-alt"></i>${intval($unread_count)}条未读消息
								</li>

								<li>
									<a href="#">
										<img src="/static/ace/assets/avatars/avatar.png" class="msg-photo" alt="Alex's Avatar" />
										<span class="msg-body">
											<span class="msg-title">
												<span class="blue">Alex:</span>
												不知道写啥 ...
											</span>

											<span class="msg-time">
												<i class="icon-time"></i>
												<span>1分钟以前</span>
											</span>
										</span>
									</a>
								</li>

								<li>
									<a href="#">
										<img src="/static/ace/assets/avatars/avatar3.png" class="msg-photo" alt="Susan's Avatar" />
										<span class="msg-body">
											<span class="msg-title">
												<span class="blue">Susan:</span>
												不知道翻译...
											</span>

											<span class="msg-time">
												<i class="icon-time"></i>
												<span>20分钟以前</span>
											</span>
										</span>
									</a>
								</li>

								<li>
									<a href="#">
										<img src="/static/ace/assets/avatars/avatar4.png" class="msg-photo" alt="Bob's Avatar" />
										<span class="msg-body">
											<span class="msg-title">
												<span class="blue">Bob:</span>
												到底是不是英文 ...
											</span>

											<span class="msg-time">
												<i class="icon-time"></i>
												<span>下午3:15</span>
											</span>
										</span>
									</a>
								</li>

								<li>
									<a href="inbox.html">
										查看所有消息
										<i class="icon-arrow-right"></i>
									</a>
								</li>
							</ul>
						</li>

						<li class="light-blue">
							<a data-toggle="dropdown" href="#" class="dropdown-toggle">
								<img class="nav-user-photo" src="${$admincp->admin['avatar'] ? $admincp->admin['avatar'] : '/static/ace/assets/avatars/user.jpg'}" alt="Avatar" />
								<span class="user-info">
									<small>欢迎光临,</small> ${$admincp->admin['realname'] ? $admincp->admin['realname'] : $admincp->admin['username']}
								</span>

								<i class="icon-caret-down"></i>
							</a>

							<ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
								<li>
									<a href="?action=account&operation=profile&settingmode=yes">
										<i class="icon-cog"></i>
										设置
									</a>
								</li>

								<li>
									<a href="?action=account&operation=profile">
										<i class="icon-user"></i>
										个人资料
									</a>
								</li>

								<li class="divider"></li>

								<li>
									<a href="logout.php">
										<i class="icon-off"></i>
										退出
									</a>
								</li>
							</ul>
						</li>
					</ul><!-- /.ace-nav -->
				</div><!-- /.navbar-header -->
			</div><!-- /.container -->
		</div>

		<div class="main-container" id="main-container">
			<script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
			</script>

			<div class="main-container-inner">
				<a class="menu-toggler" id="menu-toggler" href="#">
					<span class="menu-text"></span>
				</a>

				<div class="sidebar" id="sidebar">
					<script type="text/javascript">
						try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
					</script>

					<div class="sidebar-shortcuts" id="sidebar-shortcuts">
						<div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
							<button class="btn btn-success">
								<i class="icon-signal"></i>
							</button>

							<button class="btn btn-info">
								<i class="icon-pencil"></i>
							</button>

							<a href="?action=account&mode=detail" class="btn btn-warning">
								<i class="icon-group"></i>
							</a>

							<button class="btn btn-danger">
								<i class="icon-cogs"></i>
							</button>
						</div>

						<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
							<span class="btn btn-success"></span>

							<span class="btn btn-info"></span>

							<span class="btn btn-warning"></span>

							<span class="btn btn-danger"></span>
						</div>
					</div><!-- #sidebar-shortcuts -->

					<ul class="nav nav-list">
						<li <!--{if $_G['admincp']['action'] == 'cpindex'}-->class="active open"<!--{/if}-->>
							<a href="index.php">
								<i class="icon-dashboard"></i>
								<span class="menu-text"> 控制台 </span>
							</a>
						</li>
<!--${
	$icons = array(
    	'cogs', 'group', 'comments', 'envelope', 'folder-close', 'lock'
    );
    $header_nav_count = 0;
}-->
<!--{loop $_G['admincp']['menu'] $k $v}-->
						<li <!--{if $_G['admincp']['action'] == $k}-->class="active open"<!--{/if}-->>
							<a href="?action={$v['name']}&operation={$_G['admincp']['default'][$v['name']]}" action="{$k}" class="djaxlink dropdown-toggle">
								<i class="icon-${$icons[$header_nav_count++]}"></i>
								<span class="menu-text"> {$v['title']} </span>

								<b class="arrow icon-angle-down"></b>
							</a>
							<ul class="submenu">
<!--{loop $_G['admincp']['submenu'][$k] $subk $subv}-->
								<li class="<!--{if $_G['admincp']['action'] == $k && $subv['name'] == $_G['admincp']['operation']}-->active<!--{/if}-->">
									<a href="?action={$v['name']}&operation={$subv['name']}" class="djaxlink">
										{$subv['title']}<b class="arrow icon-angle-down"></b>
									</a>
								</li>
<!--{/loop}-->
							</ul>
						</li>
<!--{/loop}-->
							</ul>
						</li>
					</ul><!-- /.nav-list -->

					<div class="sidebar-collapse" id="sidebar-collapse">
						<i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
					</div>

					<script type="text/javascript">
						try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
					</script>
				</div>
<!--{/if}-->